import request from '../utils/request'

export function login (data) {
  return request({
    url: '/api/auth/hlogin',
    method: 'post',
    data
  })
}
export function myinfo () {
  return request({
    url: '/api/member/myinfo',
    method: 'post'
  })
}
export function passReset (data) {
  return request({
    url: '/api/member/password-reset',
    method: 'post',
    data
  })
}
export function QCList (data) {
  return request({
    url: '/api/qc/list',
    method: 'get',
    params: data
  })
}
export function QCInfo (fid) {
  return request({
    url: '/api/qc/info/'+fid,
    method: 'get'
  })
}
export function QCDtlInfo (fid) {
  return request({
    url: '/api/qc/dtl-info/'+fid,
    method: 'get'
  })
}
export function QCEdit (fid,data) {
  return request({
    url: '/api/qc/'+fid,
    method: 'post',
    data
  })
}
export function getJssdkConfig (url) {
  return request({
    url: '/api/wechat-jssdk',
    method: 'get',
    params: {url: url}
  })
}
